package acm.pta8;

import java.util.Scanner;

public class 就不告诉你 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int res=a*b;
        int ans=0;
        while (res>0){
            ans=ans*10+res%10;
            res/=10;
        }
        System.out.println(ans);
    }
}
